package com.hd.assistant.dal.dao.orderming;

import com.hd.assistant.dal.dao.exception.DAOException;
import com.hd.assistant.dal.dao.query.ordermining.ItemCostQuery;
import com.hd.assistant.dal.dataobject.ordermining.ItemCost;


public interface ItemCostsDao {
 

	public ItemCost getItemCostByItemId(String itemId)throws DAOException;
	
	public ItemCostQuery getItemCostsByQuery(ItemCostQuery query)throws DAOException;
	
	public void insertItemCost(ItemCost itemCost) throws DAOException;

	public int updateItemCost(ItemCost itemCost) throws DAOException;
	public int batcjhUpdateCost(ItemCostQuery query)throws DAOException;
	/**
	 * ItemCost.allCount 所有记录数
	 * ItemCost.costCount 有成本的记录数
	 * @param userId
	 * @return
	 * @throws DAOException
	 */
	public ItemCostQuery getItemCostCountByUserId(long userId)throws DAOException;
	
	public int autoUpdateItemCostSaleInfo(ItemCost itemCost)throws DAOException;
}
